package com.jzo2o.foundations.service.impl;

import com.jzo2o.api.customer.dto.response.ServeProviderResDTO;
import com.jzo2o.api.foundations.dto.response.ServeItemResDTO;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.foundations.model.domain.Serve;
import com.jzo2o.foundations.mapper.ServeMapper;
import com.jzo2o.foundations.model.dto.request.ServePageQueryReqDTO;
import com.jzo2o.foundations.model.dto.response.ServeResDTO;
import com.jzo2o.foundations.service.IServeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jzo2o.mysql.utils.PageHelperUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.nio.channels.Pipe;

/**
 * <p>
 * 服务表 服务实现类
 * </p>
 *
 * @author 郭瑞军
 * @since 2025-01-16
 */
@Service
public class ServeServiceImpl extends ServiceImpl<ServeMapper, Serve> implements IServeService {
 @Autowired
    private ServeMapper serveMapper;
    /*
     * 区域分页查询
     * */
    @Override
    public PageResult<ServeResDTO> queryServeList(ServePageQueryReqDTO dto) {
            return PageHelperUtils.selectPage(dto,
                    () -> baseMapper.queryServeList(dto.getRegionId()));

    }
}
